_migration_required( $old_url, $new_url ) { // Do nothing if WordPress is being installed. if ( wp_installing() ) { return; } // Delete/reset the option if the new URL is not the HTTPS version of the old URL. if ( untrailingslashit( (string) $old_url ) !== str_replace( 'https://', 'http://', untrailingslashit( (string) $new_url ) ) ) { delete_option( 'https_migration_required' ); return; } // If this is a fresh site, there is no content to migrate, so do not require migration. $https_migration_required = get_option( 'fresh_site' ) ? false : true; update_option( 'https_migration_required', $https_migration_required ); } {"code":"rest_no_route","message":"\u041d\u0435 \u0435 \u043f\u0440\u043e\u043d\u0430\u0458\u0434\u0435\u043d\u0430 \u0440\u0443\u0442\u0430 \u043a\u043e\u0458\u0430 \u043e\u0434\u0433\u043e\u0432\u0430\u0440\u0430 \u043d\u0430 URL-\u0442\u043e \u0438 \u043f\u043e\u0431\u0430\u0440\u0430\u043d\u0438\u043e\u0442 \u043c\u0435\u0442\u043e\u0434","data":{"status":404}}